package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class LayBlogApplication {

    public static void main(String[] args) {

        /**
         * Spring Boot整合ES 在项目启动设置一下属性，防止报错
         * 解决Netty冲突初始化client时抛出异常
         */
        System.setProperty("es.set.netty.runtime.available.processors","false");

        SpringApplication.run(LayBlogApplication.class, args);

        System.out.println("layblog started at http://localhost:8080");
    }

}
